//
//  LBExtras.h
//  QuickDialog
//
//  Created by xu on 14-9-23.
//
//

#import <Foundation/Foundation.h>
#import "LBValidateErrors.h"

@class QElement;

typedef enum
{
    LBRecordTypeUnknow=-1,
    LBRecordTypeFreedom = 0 ,
    LBRecordTypeCurrent,
    LBRecordTypeCheck,
    LBRecordTypeEdit,
    LBRecordTypeAll,
    LBRecordTypeEditCheck
}LBRecordType;


typedef enum{
    LBClientRefresh = 2,
    LBMasterRefresh = 3
}LBRefreshType;

@interface LBExtendButtonDefine : NSObject

@property (nonatomic,strong) NSString* btnId;
@property (nonatomic,strong) NSString* name;
@property (nonatomic,strong) NSString* text;
@property (nonatomic) BOOL isEventSource;
@property (nonatomic) NSInteger recordType;
@property (nonatomic,strong) NSString* eventName;
@property (nonatomic,strong) NSString* iconCls;
@property (nonatomic) NSInteger placeScope;

@end

@protocol LBEventHandler <NSObject>

-(void)fireEvent:(NSString*)eventName parameters:(NSDictionary*)params  atElement:(QElement*)elemnt;

@end
